import matplotlib.pyplot as plt
import numpy as np


np.random.seed(1)
data = np.random.normal(9000, 3000, size=300)
data = data[data >= 5000]
print(data)
print(len(data))

# rwidth条的宽度,bins代表柱子个数
plt.hist(data, rwidth=0.4, alpha=0.6, color='g', bins=20)

plt.show()
